#ifndef MACROS_H
#define MACROS_H

#if !defined(SAFE_DELETE)
    #define SAFE_DELETE(x) if (x) { delete x; x = 0; }
#endif

#if !defined(SAFE_DELETE_ARRAY)
    #define SAFE_DELETE_ARRAY(x) if (x) { delete [] x; x = 0; }
#endif

#endif // MACROS_H
